package com.yiji.fintech.musfinance.common.factory.gateway;

import com.yiji.fintech.musfinance.base.facade.GatewayOrderFacade;
import com.yiji.fintech.musfinance.common.domain.base.BaseDomain;
import org.springframework.stereotype.Service;

/**
 * 提现网关order构建
 * Created by ouwen@yiji.com} on 2017/9/26.
 */
@Service
public class WithdrawFactory extends AbstractFactory{
    @Override
    public GatewayOrderFacade factory(BaseDomain domain) {
        //TODO
        GatewayOrderFacade gatewayOrderFacade = new GatewayOrderFacade();
        gatewayOrderFacade.setGatewayChannelApi(domain.getGatewayChannelApi());
        gatewayOrderFacade.setGid(domain.getGid());
        gatewayOrderFacade.setMerchOrderNo(domain.getMerchOrderNo());
        gatewayOrderFacade.setBizOrderNo(domain.getBizOrderNo());
        gatewayOrderFacade.setPartnerId(domain.getPartnerId());
        return gatewayOrderFacade;
    }
}
